package com.example.travelservlet.label.service;

import com.example.travelservlet.entity.Label;
import com.example.travelservlet.label.repository.LabelRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 30697
 */
@Service
public class LabelServiceImpl implements LabelService{
    @Autowired
    private LabelRepository labelRepository;

    @Override
    public List<Label> findLabels() {
        List<Label> labels = labelRepository.findAll();
        return labels;
    }
}
